import yagmail,logging
def log():
    logging.basicConfig(level=logging.INFO,
                        format='%(levelname)s-%(filename)s-%(asctime)s-%(lineno)d',
                        filename='www.log',
                        filemode='a+'
                        )

def send_email(filepath):
    email=yagmail.SMTP(user='3177622011@qq.com',password='yquwqcqunqkcdgjb',host='smtp.qq.com')
    email.send(to='3177622011@qq.com',subject='iiiren',contents='副本难度饿哦我i七年你就凑',attachments=filepath)

